﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="WebChatValidate.WebForm1" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
    <script src="Scripts/jquery-1.7.1.min.js"></script>
    <script type="text/javascript">
        function btnclick() {
            $.ajax({
                url: "GetSign.ashx?p=sample.html",    //请求的url地址
                type: "get",   //请求方式
                async: false,//取消异步请求
                success: function (req) {
                    //请求成功时处理
                    alert(req.timestamp);
                   
                },
                error: function () {
                    //请求出错处理
                }
            });
        }
    </script>
</head>
<body>
    <form id="form1">
    <div>
         <a href="Content/test.xls">下载模板</a>
    <button  onclick="btnclick()">测试</button>
        </div>
    </form>
</body>
</html>
